<template>
        <div class="Content">

            <Category/>
            <IndexGoodsList :goodsList="goodsList"/>
        </div>
</template>

<script>
    import IndexGoodsList from "./IndexGoodsList";
    export default {
        name: "Recommd",
        data(){
            return{
            has_more:false,
            goodsList:[],
            }
        },
        components: {
            IndexGoodsList,
        },
        methods:{
            async getKeywordSearchList(keyword){
                const result = await this.axios.post('/keywordSearchList',{
                    keyword
                })
                // console.log(result.data)
                this.has_more = result.data.has_more
                this.goodsList = result.data.goods_list
            },
        },
        created() {
            this.getKeywordSearchList("孔明锁")
        },
    }
</script>

<style lang="less" scoped>

</style>